home *** CD-ROM | disk | FTP | other *** search
- <HTML>
- <HEAD>
- <TITLE>fovMapping demo -- by Shout Interactive</TITLE>
- </HEAD>
- <SCRIPT language="JavaScript">
- function shortest(){
- vp = document.Shout3D.getCurrentBindableNode("Viewpoint");
- vp.fovMapping.setValue("SHORTEST");
- }
- function horizontal(){
- vp = document.Shout3D.getCurrentBindableNode("Viewpoint");
- vp.fovMapping.setValue("HORIZONTAL");
- }
- function vertical(){
- vp = document.Shout3D.getCurrentBindableNode("Viewpoint");
- vp.fovMapping.setValue("VERTICAL");
- }
- function diagonal(){
- vp = document.Shout3D.getCurrentBindableNode("Viewpoint");
- vp.fovMapping.setValue("DIAGONAL");
- }
-
- </SCRIPT>
-
- <BODY>
- <APPLET MAYSCRIPT NAME="Shout3D" CODEBASE="../codebase" CODE="applets/ExamineApplet.class" WIDTH=75% HEIGHT=75%>
- <param name="src" value="models/renderTests/multimesh_chrome.wrl">
- <param name="backgroundColorR" value="0">
- <param name="backgroundColorG" value="0">
- <param name="backgroundColorB" value="0">
- <param name="panelAutoFillsApplet" value="true">
- <param name="pixelDoubling" value="true">
-
- </APPLET>
- <BR>
- The fovMapping controls which dimension of the applet corresponds to
- the camera field of view. When you resize the browser, the field of view
- in the fovMapping dimension will remain the same.</A><BR>
- <A HREF="javascript: shortest()">SHORTEST fovMapping - the shorter of vertical/horizontal will match the fov.</A><BR>
- <A HREF="javascript: horizontal()">HORIZONTAL fovMapping - horizontal fov remains constant.</A><BR>
- <A HREF="javascript: vertical()">VERTICAL fovMapping - vertical fov remains constant.</A><BR>
- <A HREF="javascript: diagonal()">DIAGONAL fovMapping - diagonal fov remains constant.</A><BR>
- </BODY>
- </HTML>